package com.restaurant.application.indexes.couponlist;

import com.nebutown.base.Unit;
import com.nebutown.generation.basictype.UID;
import com.restaurant.application.coupon.support.CouponData;
import com.restaurant.application.indexes.couponlist.mysql.CouponListBean;
import com.restaurant.application.indexes.couponlist.support.SearchData;
import com.restaurant.application.minifacade.data.CardBO;
import com.restaurant.application.minifacade.data.CouponListPadBO;
import com.restaurant.application.minifacade.data.IdBO;

import java.util.List;

/**
 * 优惠券管理辅助基元
 *
 * @author Administrator
 */
public interface AssistCouponList extends Unit {

    /**
     * 新增基元向大表单写入数据
     *
     * @param uid  基元uid
     * @param data 基元 data
     * @return CouponListBean
     */
    CouponListBean createBean(UID uid, CouponData data);

    /**
     * 基元向大表单贡献数据
     *
     * @param uid  基元uid
     * @param data 基元data
     * @param bean CouponListBean
     * @return CouponListBean
     */
    CouponListBean updateBean(UID uid, CouponData data, CouponListBean bean);

    /**
     * 小程获取用户所有优惠券。
     *
     * @return CardBean list
     */
    List<CardBO> getMyCardBeanList(UID var1, String var2, String var3, IdBO var4);


    UID getMyCardUid(String number);

    CouponListPadBO getCouponListPadBO(SearchData var1, Integer var2);
}
